<?php

namespace ms\modules\article\models;

use Yii;

/**
 * This is the model class for table "dh_hot_pk_rank".
 *
 * @property integer $id
 * @property integer $rank
 * @property string $dh_price
 * @property string $whole_price
 * @property string $disparity
 */
class HotPkRank extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_hot_pk_rank';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['rank', 'dh_price', 'whole_price', 'disparity','name'], 'required'],
            [['rank'], 'integer'],
        	[['name'], 'string', 'max' => 255],
            [['dh_price', 'whole_price', 'disparity'], 'number']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '编号',
            'rank' => '排名',
        	'name'=>'商品名称',	
            'dh_price' => '51dh价格',
            'whole_price' => '全网价格',
            'disparity' => '差价',
        ];
    }
}
